package thinkingJava.chapter15;

public class GenericHolder <T> {
	private T obj;
	public void set(T obj) {
		this.obj = obj;
	}
	public T get() {
		return obj;
	}
	public static void main(String[] args) {
		GenericHolder<String> ghs = new GenericHolder<String>();
		ghs.set("hello");
		String s = ghs.get();
		System.out.println(s);
	}
}
